﻿<%@ Page Language="C#" %>
<%@ Import Namespace="Xpus.Web.Common" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

	protected void btnSend_Click(object sender, EventArgs e)
	{
		XpusEmailServer es = XpusEmailServer.GetServer("DefaultEmailServer");
		es.SendEmail(txtSubject.Text, txtBody.Text, txtTo.Text);
		Response.Write("Sent.");
	}
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>member/default.aspx</title>
</head>
<body>
	<img src="<%= XpusContext.Current.GetResource("/imgs/xpus.gif") %>" />
    <form id="form1" runat="server">
    <div>
    <% foreach (var k in Request.QueryString.AllKeys)
	   {
    Response.Write(k);
    Response.Write("=");
    Response.Write(Request.QueryString[k]);
	Response.Write("<br/>");
    } %>
    </div>
    Subject: <asp:TextBox ID="txtSubject" runat="server"></asp:TextBox><br />
    Body: <asp:TextBox ID="txtBody" runat="server"></asp:TextBox><br />
    To: <asp:TextBox ID="txtTo" runat="server"></asp:TextBox><br />
    <asp:Button ID="btnSend" runat="server" Text="Send" onclick="btnSend_Click" />
    </form>
</body>
</html>
